package com.diaosidadui;


import java.util.ArrayList;

public class TestArrayListMethod {
    public static void main(String[] args) {
        ArrayList<String> arrList = new ArrayList<>();
        arrList.add("aaa");
        arrList.add("111");
        arrList.add("222");
        arrList.add("333");
        arrList.add("444");
        arrList.add("555");
/*        System.out.println(arrList.remove("aaa"));
        System.out.println(arrList.remove(0));
        System.out.println(arrList.set(0, "mmm"));
        System.out.println(arrList.size());
        System.out.println(arrList.get(0));
        System.out.println(arrList.get(1));
        System.out.println(arrList.get(2));
        System.out.println(arrList.get(3));*/
        System.out.println(arrList);

        for (int i = 0; i < arrList.size(); i++) {
            System.out.println(arrList.get(i));

        }


    }
}
